namespace Eco.Contrib.Demo
{
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;
    using Eco.Handles;
    using Eco.ObjectRepresentation;
    using Eco.Services;
    using Eco.Windows.Forms;
    using Eco.WinForm;

    public partial class WinDemo
    {
        private Eco.Handles.ReferenceHandle rhRoot;
        private Eco.WinForm.EcoActionExtender ecoGlobalActions;
        private Eco.WinForm.EcoListActionExtender ecoListActions;

        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (this.components != null)
                {
                    this.components.Dispose();
                }
            }

            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Eco.Handles.OclColumn oclColumn1 = new Eco.Handles.OclColumn();
            this.rhRoot = new Eco.Handles.ReferenceHandle();
            this.ecoListActions = new Eco.WinForm.EcoListActionExtender();
            this.btnAdd = new System.Windows.Forms.Button();
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.programDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.class2DataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ehScripts = new Eco.Handles.ExpressionHandle();
            this.btnDelete = new System.Windows.Forms.Button();
            this.ecoGlobalActions = new Eco.WinForm.EcoActionExtender();
            this.btnShowDebugger = new System.Windows.Forms.Button();
            this.btnUpdateDB = new System.Windows.Forms.Button();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.btnDetails = new System.Windows.Forms.Button();
            this.currencyManagerHandle1 = new Eco.Handles.CurrencyManagerHandle();
            this.btnStart = new System.Windows.Forms.Button();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            ((System.ComponentModel.ISupportInitialize)(this.rhRoot)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ehScripts)).BeginInit();
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.currencyManagerHandle1)).BeginInit();
            this.SuspendLayout();
            // 
            // rhRoot
            // 
            this.rhRoot.EcoSpaceTypeName = "Eco.Contrib.Demo.EcoSpace.EcoContribDemoEcoSpace";
            this.rhRoot.StaticValueTypeName = "Script";
            // 
            // ecoListActions
            // 
            this.ecoListActions.DeleteQuestion = "Delete object(s)?";
            // 
            // btnAdd
            // 
            this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.ecoListActions.SetBindingContext(this.btnAdd, this.dataGridView1);
            this.ecoListActions.SetEcoListAction(this.btnAdd, Eco.WinForm.ListAction.Add);
            this.btnAdd.ImageIndex = 1;
            this.btnAdd.Location = new System.Drawing.Point(84, 326);
            this.btnAdd.Name = "btnAdd";
            this.ecoListActions.SetRootHandle(this.btnAdd, this.ehScripts);
            this.btnAdd.Size = new System.Drawing.Size(75, 23);
            this.btnAdd.TabIndex = 1;
            this.btnAdd.Text = "Add";
            this.btnAdd.UseVisualStyleBackColor = true;
            // 
            // dataGridView1
            // 
            this.dataGridView1.AllowUserToAddRows = false;
            this.dataGridView1.AllowUserToDeleteRows = false;
            this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.dataGridView1.AutoGenerateColumns = false;
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.programDataGridViewTextBoxColumn,
            this.dataGridViewTextBoxColumn1,
            this.dataGridViewTextBoxColumn2,
            this.class2DataGridViewTextBoxColumn});
            this.dataGridView1.DataSource = this.ehScripts;
            this.dataGridView1.Location = new System.Drawing.Point(5, 6);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.ReadOnly = true;
            this.dataGridView1.Size = new System.Drawing.Size(761, 314);
            this.dataGridView1.TabIndex = 0;
            this.dataGridView1.DoubleClick += new System.EventHandler(this.btnDetails_Click);
            // 
            // programDataGridViewTextBoxColumn
            // 
            this.programDataGridViewTextBoxColumn.DataPropertyName = "Program";
            this.programDataGridViewTextBoxColumn.HeaderText = "Program";
            this.programDataGridViewTextBoxColumn.Name = "programDataGridViewTextBoxColumn";
            this.programDataGridViewTextBoxColumn.ReadOnly = true;
            // 
            // dataGridViewTextBoxColumn1
            // 
            this.dataGridViewTextBoxColumn1.DataPropertyName = "Parameter";
            this.dataGridViewTextBoxColumn1.HeaderText = "Parameter";
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            // 
            // dataGridViewTextBoxColumn2
            // 
            this.dataGridViewTextBoxColumn2.DataPropertyName = "Name";
            this.dataGridViewTextBoxColumn2.HeaderText = "Name";
            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly = true;
            // 
            // class2DataGridViewTextBoxColumn
            // 
            this.class2DataGridViewTextBoxColumn.DataPropertyName = "Class2";
            this.class2DataGridViewTextBoxColumn.HeaderText = "Class2";
            this.class2DataGridViewTextBoxColumn.Name = "class2DataGridViewTextBoxColumn";
            this.class2DataGridViewTextBoxColumn.ReadOnly = true;
            // 
            // ehScripts
            // 
            this.ehScripts.Expression = "Script.allInstances";
            this.ehScripts.RootHandle = this.rhRoot;
            // 
            // btnDelete
            // 
            this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.ecoListActions.SetBindingContext(this.btnDelete, this.dataGridView1);
            this.ecoListActions.SetEcoListAction(this.btnDelete, Eco.WinForm.ListAction.Delete);
            this.btnDelete.ImageIndex = 2;
            this.btnDelete.Location = new System.Drawing.Point(166, 326);
            this.btnDelete.Name = "btnDelete";
            this.ecoListActions.SetRootHandle(this.btnDelete, this.ehScripts);
            this.btnDelete.Size = new System.Drawing.Size(75, 23);
            this.btnDelete.TabIndex = 3;
            this.btnDelete.Text = "Delete";
            this.btnDelete.UseVisualStyleBackColor = true;
            // 
            // ecoGlobalActions
            // 
            this.ecoGlobalActions.RootHandle = this.rhRoot;
            // 
            // btnShowDebugger
            // 
            this.ecoGlobalActions.SetEcoAction(this.btnShowDebugger, Eco.WinForm.EcoAction.ShowDebugger);
            this.btnShowDebugger.Location = new System.Drawing.Point(3, 13);
            this.btnShowDebugger.Name = "btnShowDebugger";
            this.btnShowDebugger.Size = new System.Drawing.Size(75, 23);
            this.btnShowDebugger.TabIndex = 0;
            this.btnShowDebugger.Text = "Debugger";
            this.btnShowDebugger.UseVisualStyleBackColor = true;
            // 
            // btnUpdateDB
            // 
            this.ecoGlobalActions.SetEcoAction(this.btnUpdateDB, Eco.WinForm.EcoAction.UpdateDatabase);
            this.btnUpdateDB.Location = new System.Drawing.Point(84, 13);
            this.btnUpdateDB.Name = "btnUpdateDB";
            this.btnUpdateDB.Size = new System.Drawing.Size(75, 23);
            this.btnUpdateDB.TabIndex = 2;
            this.btnUpdateDB.Text = "Update DB";
            this.btnUpdateDB.UseVisualStyleBackColor = true;
            // 
            // tabControl1
            // 
            this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Location = new System.Drawing.Point(3, 42);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(780, 378);
            this.tabControl1.TabIndex = 1;
            // 
            // tabPage1
            // 
            this.tabPage1.Controls.Add(this.btnDetails);
            this.tabPage1.Controls.Add(this.btnDelete);
            this.tabPage1.Controls.Add(this.btnStart);
            this.tabPage1.Controls.Add(this.btnAdd);
            this.tabPage1.Controls.Add(this.dataGridView1);
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(772, 352);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "Scripts";
            this.tabPage1.UseVisualStyleBackColor = true;
            // 
            // btnDetails
            // 
            this.btnDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnDetails.DataBindings.Add(new System.Windows.Forms.Binding("Enabled", this.currencyManagerHandle1, "IsNotNull", true));
            this.btnDetails.Location = new System.Drawing.Point(3, 326);
            this.btnDetails.Name = "btnDetails";
            this.btnDetails.Size = new System.Drawing.Size(75, 23);
            this.btnDetails.TabIndex = 4;
            this.btnDetails.Text = "Details";
            this.btnDetails.UseVisualStyleBackColor = true;
            this.btnDetails.Click += new System.EventHandler(this.btnDetails_Click);
            // 
            // currencyManagerHandle1
            // 
            this.currencyManagerHandle1.BindingContext = this.dataGridView1;
            oclColumn1.Expression = "not self.IsNull";
            oclColumn1.Name = "IsNotNull";
            oclColumn1.TypeName = "n/a";
            this.currencyManagerHandle1.Columns.AddRange(new Eco.Handles.AbstractColumn[] {
            oclColumn1});
            this.currencyManagerHandle1.RootHandle = this.ehScripts;
            // 
            // btnStart
            // 
            this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnStart.Location = new System.Drawing.Point(691, 326);
            this.btnStart.Name = "btnStart";
            this.btnStart.Size = new System.Drawing.Size(75, 23);
            this.btnStart.TabIndex = 2;
            this.btnStart.Text = "Start";
            this.btnStart.UseVisualStyleBackColor = true;
            this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
            // 
            // tabPage2
            // 
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(772, 352);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "tabPage2";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // WinDemo
            // 
            this.ClientSize = new System.Drawing.Size(785, 422);
            this.Controls.Add(this.btnUpdateDB);
            this.Controls.Add(this.tabControl1);
            this.Controls.Add(this.btnShowDebugger);
            this.MinimumSize = new System.Drawing.Size(801, 460);
            this.Name = "WinDemo";
            this.Text = "Demo";
            ((System.ComponentModel.ISupportInitialize)(this.rhRoot)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ehScripts)).EndInit();
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.currencyManagerHandle1)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion

        private TabControl tabControl1;
        private TabPage tabPage1;
        private TabPage tabPage2;
        private ExpressionHandle ehScripts;
        private Button btnAdd;
        private DataGridView dataGridView1;
        private Button btnStart;
        private Button btnShowDebugger;
        private Button btnUpdateDB;
        private Button btnDelete;
        private Button btnDetails;
        private CurrencyManagerHandle currencyManagerHandle1;
        private DataGridViewTextBoxColumn programDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
        private DataGridViewTextBoxColumn class2DataGridViewTextBoxColumn;
    }
}
